using System;

namespace T006
{
    class Weapon
    {
        protected string _name;//武器名称
        protected int _magazineCapacity;//弹匣容量
        private int _ammoNumInMc;//当前弹匣中的弹药数量
        protected float _attackRange;//攻击范围
        protected float _fireRate;//射速
        
        public Weapon(string name, int mc, int an, float dis)
        {
            _name = name;
            _magazineCapacity = mc;
            _ammoNumInMc = an;
            _attackRange = dis;
            Console.WriteLine("有参数构造函数被调用");
        }

        public virtual void Fire()
        {
            Console.WriteLine("Base Class Fire");
        }
    }
}